package ua.com.infinite.mobile.server;

import java.util.ArrayList;
import java.util.List;

import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;

public class RequestObject {
	private ArrayList<NameValuePair> data;
	private String action;
	
	public RequestObject() {
		data = new ArrayList<NameValuePair>();
	}

	public RequestObject(ArrayList<NameValuePair> data, String action) {
		this();
		this.data = data;
		this.action = action;
	}

	public List<NameValuePair> getData() {
		return data;
	}

	public void setData(ArrayList<NameValuePair> data) {
		this.data = data;
	}

	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public void addParam(String key, String value) {
		data.add(new BasicNameValuePair(key, value));
	}

}
